package com.config;

import com.dto.User;
import com.utils.UUIDUtils;
import org.springframework.context.annotation.Configuration;

/**
 * @author HuangSuip
 */
@Configuration
public class BeanConfig {

    //@Bean
    //@Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES)
    public User user() {
        User user = new User();
        user.setName(UUIDUtils.randomUUID());
        return user;
    }

/*    @Bean
    @Scope(value = "request", proxyMode = ScopedProxyMode.INTERFACES)
    public UserService userService(){
        return new UserServiceImpl();
    }
*/

}
